package com.sunny.springboot2.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 锁的参数
 * @author sunny
 * @date 2018/11/29
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface CacheLockParam {

    /**
     * 字段名称
     *
     * @author sunny
     * @date 2018/11/29
     * @return java.lang.String
     */
    String name() default "";
}
